import {createRouter, createWebHistory, RouteRecordRaw} from "vue-router";
import Home from '../pages/home.vue'
import Users from '../pages/users.vue'
import Roles from '../pages/roles.vue'
import Resources from '../pages/resources.vue'
import Login from "../pages/login.vue";
import IssueCategory from "../pages/issue-categorys.vue"
import Issue from "../pages/issues.vue"
import EbookCategory from "../pages/ebook-categorys.vue"
import Ebook from "../pages/ebooks.vue"
import Doc from "../pages/docs.vue"

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'home',
        component: Home
    }, {
        path: '/login',
        name: 'login',
        component: Login
    }, {
        path: '/users',
        name: 'users',
        component: Users
    }, {
        path: '/roles',
        name: 'roles',
        component: Roles
    }, {
        path: '/resources',
        name: 'resources',
        component: Resources
    }, {
        path: '/issue-categorys',
        name: 'issue-category',
        component: IssueCategory
    }, {
        path: '/issues',
        name: 'issue',
        component: Issue
    }, {
        path: '/ebook-categorys',
        name: 'ebook-category',
        component: EbookCategory
    }, {
        path: '/ebooks',
        name: 'ebook',
        component: Ebook
    }, {
        path: '/docs',
        name: 'doc',
        component: Doc
    }
]

export default createRouter({
    history: createWebHistory(),
    routes
})